package com.ij.media.utils;


import com.ij.media.enums.RequestTypeEnums;
import org.springframework.http.HttpMethod;

public class RequestType {
    public static HttpMethod returnType(RequestTypeEnums requestType) {
        switch (requestType) {
            case GET:
                return HttpMethod.GET;
            case PUT:
                return HttpMethod.PUT;
            case POST:
                return HttpMethod.POST;
            case DELETE:
                return HttpMethod.DELETE;
        }
        return HttpMethod.GET;
    }
}
